<%@ Page Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true" CodeFile="SigPlanProgramaProgramas.aspx.cs" Inherits="SigPlanProgramaProgramas" Title="Lineas" %>
<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1 class="planes">Programas</h1>

    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
        DataSourceID="SqlDataSource1" KeyFieldName="GPR_ID" Width="98%" 
        Theme="PlasticBlue">
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="All">
            </AllButton>
            <NextPageButton Text="Next &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Prev">
            </PrevPageButton>
        </SettingsPager>
        
        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                    <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                    </Header>
                                                   
                                                </Styles>
        <Columns>
            <dxwgv:GridViewCommandColumn VisibleIndex="0">
                <EditButton Text="Editar" Visible="True">
                </EditButton>
                <NewButton Text="Nuevo" Visible="True">
                </NewButton>
                <DeleteButton Text="Borrar" Visible="True">
                </DeleteButton>
                <CancelButton Text="Cancelar" Visible="True">
                </CancelButton>
                <UpdateButton Text="Guardar" Visible="True">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn Caption="ID" FieldName="GPR_ID" VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Nombre" FieldName="GPR_NOMBRE" VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <Settings ShowFilterRow="True" ShowFilterRowMenu="True" />
        
        <StylesEditors>
            <CalendarHeader Spacing="11px">
            </CalendarHeader>
            <ProgressBar Height="25px">
            </ProgressBar>
        </StylesEditors>
    </dxwgv:ASPxGridView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MCSIGConnectionString %>"
        DeleteCommand="DELETE FROM [SIG_GRUPO_PROGRAMAS] WHERE [GPR_ID] = @GPR_ID" InsertCommand="INSERT INTO [SIG_GRUPO_PROGRAMAS] ([GPR_ID], [GPR_NOMBRE]) VALUES (@GPR_ID, @GPR_NOMBRE)"
        SelectCommand="SELECT [GPR_ID], [GPR_NOMBRE] FROM [SIG_GRUPO_PROGRAMAS]" UpdateCommand="UPDATE [SIG_GRUPO_PROGRAMAS] SET [GPR_NOMBRE] = @GPR_NOMBRE WHERE [GPR_ID] = @GPR_ID">
        <DeleteParameters>
            <asp:Parameter Name="GPR_ID" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="GPR_NOMBRE" Type="String" />
            <asp:Parameter Name="GPR_ID" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="GPR_ID" Type="String" />
            <asp:Parameter Name="GPR_NOMBRE" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>

